<?php
/**
 * Created by PhpStorm.
 * User: chengluo
 * Date: 2018/11/3
 * Time: 21:27
 */

namespace App\Listeners;

use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Log;

class TransactionBeginning
{
    public function __construct()
    {
    }

    public function handle($event)
    {
        $connection = $event->connection ;
        $connectionName = $event->connectionName ;

//        $connection->commit();
//        Log::info("Transaction Beginning:  ".($connection));
        Log::info("Transaction Beginning Name:  ".$connectionName);
    }
}